<?php

require_once '../../../serverResources/includes/db/ConnDBUser.php';
require_once '../../../serverResources/includes/classes/User.php';

if(isset($_POST['newPassword']) && isset($_POST['userID'])){

	$user=new User('', '', '', '', '', '');

	$passwordSet=$user->updateUserPassword($_POST['newPassword'], $_POST['userID']);
	unset($user);

	if($passwordSet){
		echo 1;
	}else{
		echo 0;
	}

}else{
	echo 0;
}